package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.GroupDiscountHouseBookingorderMapper;
import com.ruoyi.yipaiju.domain.GroupDiscountHouseBookingorder;
import com.ruoyi.yipaiju.service.IGroupDiscountHouseBookingorderService;

/**
 * fo_group_discount_house_bookingorderService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class GroupDiscountHouseBookingorderServiceImpl implements IGroupDiscountHouseBookingorderService 
{
    @Autowired
    private GroupDiscountHouseBookingorderMapper groupDiscountHouseBookingorderMapper;

    /**
     * 查询fo_group_discount_house_bookingorder
     * 
     * @param id fo_group_discount_house_bookingorder主键
     * @return fo_group_discount_house_bookingorder
     */
    @Override
    public GroupDiscountHouseBookingorder selectGroupDiscountHouseBookingorderById(Long id)
    {
        return groupDiscountHouseBookingorderMapper.selectGroupDiscountHouseBookingorderById(id);
    }

    /**
     * 查询fo_group_discount_house_bookingorder列表
     * 
     * @param groupDiscountHouseBookingorder fo_group_discount_house_bookingorder
     * @return fo_group_discount_house_bookingorder
     */
    @Override
    public List<GroupDiscountHouseBookingorder> selectGroupDiscountHouseBookingorderList(GroupDiscountHouseBookingorder groupDiscountHouseBookingorder)
    {
        return groupDiscountHouseBookingorderMapper.selectGroupDiscountHouseBookingorderList(groupDiscountHouseBookingorder);
    }

    /**
     * 根据业务主键查询一条记录：fo_group_discount_house_bookingorder
     *
     * @param groupDiscountHouseBookingorder fo_group_discount_house_bookingorder
     * @return fo_group_discount_house_bookingorder
     */
    @Override
    public GroupDiscountHouseBookingorder selectOneGroupDiscountHouseBookingorder(GroupDiscountHouseBookingorder groupDiscountHouseBookingorder)
    {
        return groupDiscountHouseBookingorderMapper.selectOneGroupDiscountHouseBookingorder(groupDiscountHouseBookingorder);
    }

    /**
     * 新增fo_group_discount_house_bookingorder
     * 
     * @param groupDiscountHouseBookingorder fo_group_discount_house_bookingorder
     * @return 结果
     */
    @Override
    public int insertGroupDiscountHouseBookingorder(GroupDiscountHouseBookingorder groupDiscountHouseBookingorder)
    {
        return groupDiscountHouseBookingorderMapper.insertGroupDiscountHouseBookingorder(groupDiscountHouseBookingorder);
    }

    /**
     * 修改fo_group_discount_house_bookingorder
     * 
     * @param groupDiscountHouseBookingorder fo_group_discount_house_bookingorder
     * @return 结果
     */
    @Override
    public int updateGroupDiscountHouseBookingorder(GroupDiscountHouseBookingorder groupDiscountHouseBookingorder)
    {
        return groupDiscountHouseBookingorderMapper.updateGroupDiscountHouseBookingorder(groupDiscountHouseBookingorder);
    }

    @Override
    public int updateGroupDiscountHouseBookingorderCondition(GroupDiscountHouseBookingorder groupDiscountHouseBookingorder, GroupDiscountHouseBookingorder groupDiscountHouseBookingorderCondition)
    {
        return groupDiscountHouseBookingorderMapper.updateGroupDiscountHouseBookingorderCondition(groupDiscountHouseBookingorder, groupDiscountHouseBookingorderCondition);
    }

    /**
     * 批量删除fo_group_discount_house_bookingorder
     * 
     * @param ids 需要删除的fo_group_discount_house_bookingorder主键
     * @return 结果
     */
    @Override
    public int deleteGroupDiscountHouseBookingorderByIds(Long[] ids)
    {
        return groupDiscountHouseBookingorderMapper.deleteGroupDiscountHouseBookingorderByIds(ids);
    }

    /**
     * 删除fo_group_discount_house_bookingorder信息
     * 
     * @param id fo_group_discount_house_bookingorder主键
     * @return 结果
     */
    @Override
    public int deleteGroupDiscountHouseBookingorderById(Long id)
    {
        return groupDiscountHouseBookingorderMapper.deleteGroupDiscountHouseBookingorderById(id);
    }

    /**
     * 条件删除fo_group_discount_house_bookingorder
     *
     * @param groupDiscountHouseBookingorder fo_group_discount_house_bookingorder
     * @return 结果
     */
    @Override
    public int deleteGroupDiscountHouseBookingorderByCondition(GroupDiscountHouseBookingorder groupDiscountHouseBookingorder)
    {
        return groupDiscountHouseBookingorderMapper.deleteGroupDiscountHouseBookingorderByCondition(groupDiscountHouseBookingorder);
    }

}
